package cn.flexui.flexuiserver.handler;

import cn.flexui.flexuiserver.common.ResponseResultGenerator;
import cn.flexui.flexuiserver.domain.ResponseResult;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author apeto
 * @create 2023/4/3 11:37
 */
@RestControllerAdvice
public class RestExceptionHandler extends BaseExceptionHandler<ResponseResult<?>> {

  public RestExceptionHandler() {
  }

  protected ResponseResult<?> getResult (Integer code, String message) {
    return ResponseResultGenerator.result(code, message);
  }



}
